package com.melodyframe.tableland.engine.model.map;

import java.util.Set;

import com.melodyframe.tableland.engine.model.common.Asset;

/**
 * 区域的抽象模型
 * 
 * @author ettear
 */
public abstract class AbstractArea implements Area {

    private String               key;
    private String               name;
    /**
     * 相邻地区
     */
    private Set<Area>            neighbors;
    /**
     * 资源
     */
    private Set<Resource<Asset>> resources;

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public Set<Area> getNeighbors() {
        return neighbors;
    }

    public void setNeighbors(Set<Area> neighbors) {
        this.neighbors = neighbors;
    }

    @Override
    public Set<Resource<Asset>> getResources() {
        return resources;
    }

    public void setResources(Set<Resource<Asset>> resources) {
        this.resources = resources;
    }
}
